package com.ky.gp.app.service;

import com.ky.common.vo.R;
import com.ky.gp.app.config.OpenFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * --- 天道酬勤 ---
 *
 * @author 1379
 * @date 2024/6/22
 * @desc -- 代码敲烂 月薪过万--
 */
@FeignClient(value = "gp-course-server",configuration = OpenFeignConfig.class)
public interface FollowFeign {

    @GetMapping("/course/follow/followUser")
    R followUser(@RequestParam("followingId") Integer followingId);

    @GetMapping("/course/follow/unfollowUser")
    R unfollowUser(@RequestParam("followingId") Integer followingId);

    @GetMapping("/course/follow/unfollowTeacher")
    R unfollowTeacher( @RequestParam("followingId") Integer followingId);
    @GetMapping("/course/follow/followTeacher")
    R followTeacher( @RequestParam("followingId") Integer followingId);
    @GetMapping("/course/follow/followArticle")
    R followArticle( @RequestParam("followingId") Integer followingId);
    @GetMapping("/course/follow/unfollowArticle")
    R unfollowArticle( @RequestParam("followingId") Integer followingId);
}
